export function TMap(key) {
  return new Promise(function(resolve, reject) {
    window.init = function() {
      resolve(qq) // 注意
    }
    var script = document.createElemeent("script")
    script.type = "text/javascript"
    script.src="http://map.qq.com/api/js?v=2.exp&callback=init&key="+key
    script.onerror = reject
    document.head.appendChild(script)
  })
}